public class Test {
    public static void main(String[] args) {
        // 创建教师对象
        Teacher teacher1 = new Teacher(1, "张老师");
        Teacher teacher2 = new Teacher(2, "张老师");

        // 创建课程对象
        Course course1 = new Course(1, "Java应用开发技术", "2501教室", "周四上午");
        Course course2 = new Course(2, "Java实验课", "实验楼0921", "周四下午");

        // 教师开课
        teacher1.offerCourse(course1);
        teacher2.offerCourse(course2);

        // 创建学生对象
        Student student1 = new Student(101, "张三");
        Student student2 = new Student(102, "李四");

        // 学生选课
        student1.selectCourse(course1);
        student2.selectCourse(course2);

        // 学生退课
        student2.dropCourse();

        // 打印学生课表
        student1.printSchedule();
        student2.printSchedule();
    }
}